<!--
 * @Descripttion: 
 * @version: 
 * @Author: sueRimn
 * @Date: 2022-07-11 10:34:35
 * @LastEditors: sueRimn
 * @LastEditTime: 2022-07-11 14:26:51
-->
<template>
  <div>
    <h3>{{ compH3 }}</h3>
    <ul>
      <li v-for="(item, index) in tdt" :key="index">{{ item.name }}</li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "childT",
  inject: ["tdt", "showMsg", "showInput"],
  data() {
    return {};
  },
  computed: {
    compH3() {
      return this.showInput();
    },
  },
  mounted() {
    this.showMsg();
  },
};
</script>
<style scoped>
</style>